package com.bj58.ecdata.dashboard.databll;

import com.bj58.ecdata.calc.dbservice.service.BusslineEnum;
import com.bj58.ecdata.calc.dbservice.service.DisplayService;
import com.bj58.ecdata.calc.dbservice.service.PlatformEnum;
import com.bj58.ecdata.dashboard.service.SCFClient;

/**
 * 
 * simple introduction
 * 
 * <p>
 * detailed comment
 * 
 * @author guolu 2015-5-22
 * @see
 * @since 1.0
 */
public class DisplayServBLL {

	private static DisplayService displayService = SCFClient.getRemoteService(DisplayService.class);

	public static String ping() {
		return displayService.ping();
	}

	/**
	 * @param time
	 *            0 返回最近一小时数据
	 */
	public static String getData(String type, PlatformEnum platform, BusslineEnum bussline, long time) {
		return displayService.getData(type, platform, bussline, time);
	}

	public static String getDataTodayHourly(String type, PlatformEnum platform, BusslineEnum bussline) {
		return displayService.getDataTodayHourly(type, platform, bussline);
	}

	public static String getDataYesterdayHourly(String type, PlatformEnum platform, BusslineEnum bussline) {
		return displayService.getDataYesterdayHourly(type, platform, bussline);
	}

}
